<?php if(!defined('IN_ADMINCP')) exit('Access Denied'); ?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>管理中心 - Musical</title>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<meta name="HandheldFriendly" content="true" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<link rel="stylesheet" href="./style/main.css" type="text/css" />
</head>
<body>
	<div class="wrapper" id="page_index">
		<div id="append_parent"></div>
		<div class="main-box clearfix">
			<h1><?php echo $_config['sitename']; ?> - 管理中心</h1>
			<div class="loading-icon"><img src="style/loading.gif" /> 载入中...</div>
			<div class="menubtn">&nbsp;</div>
			<div class="sidebar">
				<ul class="menu">
					<li id="menu_setting"><a href="#setting">系统设置</a></li>
					<li id="menu_user"><a href="#user">用户管理</a></li>
					<li id="menu_new"><a href="#new">审核新歌</a></li>
					<li id="menu_list"><a href="#list">歌曲列表</a></li>
					<li><a href="./">返回前台</a></li>
				</ul>
			</div>
			<div class="main-content">
				<div id="content-setting" class="hidden">
					<h2>系统设置</h2>
					<form method="post" action="admin.php?action=update_setting">
						<input type="hidden" name="formhash" value="<?php echo $formhash; ?>">
						<p>系统相关</p>
						<p><label><input type="text" name="notice" id="notice" placeholder="系统公告 (留空不显示)" /></label></p>
						<p>用户相关</p>
						<p><label><input type="checkbox" id="block_register" name="block_register" /> 关闭用户注册</label></p>
						<p><label><input type="text" name="invite_code" id="invite_code" placeholder="邀请码 (留空为不需要)" /></label></p>
						<p>歌曲相关</p>
						<p><label><input type="checkbox" id="block_download" name="block_download" /> 关闭歌曲下载</label></p>
						<p><label><input type="text" name="quality_1" id="quality_1" placeholder="音质1显示名称 (留空为渣音质)" /></label></p>
						<p><label><input type="text" name="quality_2" id="quality_2" placeholder="音质2显示名称 (留空为高音质)" /></label></p>
						<p><label><input type="text" name="quality_3" id="quality_3" placeholder="音质3显示名称 (留空为无损)" /></label></p>
						<p>上传相关</p>
						<p><label><input type="checkbox" id="block_upload" name="block_upload" /> 关闭歌曲上传</label></p>
						<p><label><input type="checkbox" id="block_vdisk" name="block_vdisk" /> 关闭vDisk接口</label>&nbsp;&nbsp;<label><input type="text" name="block_vdisk_reason" id="block_vdisk_reason" placeholder="关闭原因 (留空为系统维护中)" /></label></p>
						<p><label><input type="checkbox" id="block_baidupcs" name="block_baidupcs" /> 关闭BaiduPCS接口</label>&nbsp;&nbsp;<label><input type="text" name="block_baidupcs_reason" id="block_baidupcs_reason" placeholder="关闭原因 (留空为系统维护中)" /></label></p>
						<p><input type="submit" value="保存设置" /></p>
					</form>
				</div>
				<div id="content-user" class="hidden">
					<h2>用户管理</h2>
					<table>
						<thead><tr><td style="width: 40px">UID</td><td>用户名</td><td>邮箱</td><td>操作</td></tr></thead>
						<tbody></tbody>
					</table>
				</div>
				<div id="content-new" class="hidden">
					<h2>审核新歌</h2>
					<table>
						<thead><tr><td>#</td><td>UID</td><td>标题</td><td>艺术家</td><td>专辑</td><td>品质</td><td>操作</td></tr></thead>
						<tbody></tbody>
					</table>
				</div>
				<div id="content-list" class="hidden">
					<h2>歌曲列表</h2>
					<table>
						<thead><tr><td>#</td><td>UID</td><td>标题</td><td>艺术家</td><td>专辑</td><td>品质</td><td>操作</td></tr></thead>
						<tbody></tbody>
					</table>
				</div>
			</div>
		</div>
		<p class="copyright">Powered by <a href="http://www.imusical.tk" target="_blank">Musical</a> <?php echo VERSION; ?>.Code by kiddel.UI by newcxs.</p>
	</div>
<script src="system/js/jquery.min.js"></script>
<script type="text/javascript">
var mobile = <?php echo IN_MOBILE ? '1' : '0'; ?>;
var formhash = '<?php echo $formhash; ?>';
var siteurl = '<?php echo $_config['siteurl']; ?>';
</script>
<script src="system/js/admin.js"></script>
<script src="system/js/fwin.js"></script>
<script type='text/javascript'>
(function() {
    var c = document.createElement('script'); 
    c.type = 'text/javascript';
    c.async = true;
    c.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'www.clicki.cn/boot/49888';
    var h = document.getElementsByTagName('script')[0];
    h.parentNode.insertBefore(c, h);
})();
</script>
</body>
</html>